echo "10.10.11.201 bagel.htb" >> /etc/hosts
8000/tcp open http-alt syn-ack Werkzeug/2.2.2 Python/3.10.9 Date: Sat, 11 Mar 2023 17:22:00 GMT | Content-Type: text/html; charset=utf-8 | Content-Length: 263 | Location: http://bagel.htb:8000/?page=index.html | Connection: close | <!doctype html> | <html lang=en> | <title>Redirecting...</title> | <h1>Redirecting...</h1>
http://bagel.htb:8000/?page=<file>
@app.route('/orders') def order(): # don't forget to run the order app first with "dotnet <path to .dll>" command. # Use your ssh key to access the machine. try: ws = websocket.WebSocket() ws.connect("ws://127.0.0.1:5000/") # connect to order app order = {"ReadOrder":"orders.txt"} data = str(json.dumps(order)) ws.send(data) result = ws.recv() return(json.loads(result)['ReadOrder']) except: return("Unable to connect")
/proc/cmdline |
Kernel Parameters |
/proc/version |
Kernerl version and details |
/proc/uptime |
Machine/Kernel uptime |